package week9.Q3;

public class CarshopTest {
    public static void main(String[] args) {
        CarShop carShop=new CarShop();
        carShop.sellCar(new ToyotaCar());
        carShop.sellCar(new BMWCar());
        System.out.println("总销售额"+carShop.getMoney()+"元");
    }
}
